broadway: Track surface position correctly
authorAlexander Larsson <alexl@redhat.com>
Fri, 13 Mar 2020 13:33:07 +0000 (14:33 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 13 Mar 2020 14:05:59 +0000 (15:05 +0100)
commit03d6d272f79fde6a0dc2583ab4f105969d227599
treeda4876d702ba744a664906371b6a8236c9de4b84
parent1a763c440f61d3efe77cfdb670371b205451c878
broadway: Track surface position correctly

surface->x/y (and various x,y arguments) should be in the parent
coordinates, so treat it as such. We also keep track of the root coords
as these are needed for popup positioning.

Also, drop the isTemp property server side and the weird initial
placement at (100, 100) in the daemon. We now fully control window
placement from the client instead. If this is not we want we should do
a serious design for that but until then lets do the simplest thing.
13 files changed:
gdk/broadway/broadway-output.c
gdk/broadway/broadway-output.h
gdk/broadway/broadway-protocol.h
gdk/broadway/broadway-server.c
gdk/broadway/broadway-server.h
gdk/broadway/broadway.js
gdk/broadway/broadwayd.c
gdk/broadway/gdkbroadway-server.c
gdk/broadway/gdkbroadway-server.h
gdk/broadway/gdkeventsource.c
gdk/broadway/gdkprivate-broadway.h
gdk/broadway/gdksurface-broadway.c
gdk/broadway/gdksurface-broadway.h